package org.example.captchademo.Model;

import jakarta.websocket.Session;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

//@Component
@Configuration
@ConfigurationProperties(prefix = "captcha")
@Data
public class CaptchaProperties {
    private Integer width;
    private Integer height;
//    private Session CAPTCHA_SESSION_DATE;
//    private Session session;
    private Session session;

//    内部类
    @Data
    public static class Session{
        private String code;
        private String date;
}
}
